package com.yxx.community.mapper;

import com.yxx.community.model.Question;
import com.yxx.community.model.QuestionExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface QuestionExtMapper {
    int inView(Question record);
    List<Question> list( Integer offset,Integer size,String search);
    List<Question> listByUserId(Long userId, Integer offset, Integer size);
    int inCommentCount(Question record);
    List<Question> selectRelated(Question record);
    Integer questionCount(String search);
}